package main

import (
	configx "config"

	"github.com/zeromicro/go-zero/core/discov"
	"github.com/zeromicro/go-zero/core/logx"
	"github.com/zeromicro/go-zero/core/proc"
	"github.com/zeromicro/go-zero/core/service"
	"github.com/zeromicro/go-zero/core/trace"
	"github.com/zeromicro/go-zero/zrpc"
)

var rpcConf zrpc.RpcServerConf = zrpc.RpcServerConf{
	ServiceConf: service.ServiceConf{
		Name: configx.ServerName,
		Log: logx.LogConf{
			ServiceName:      configx.ServerName,
			Path:             "logs",
			Level:            "",
			MaxContentLength: 1 << 10,
			MaxSize:          1 << 10,
		},
		Mode:       "",
		MetricsUrl: "",
		Telemetry:  trace.Config{},
		DevServer: service.DevServerConfig{
			Enabled:        false,
			Host:           "",
			Port:           0,
			MetricsPath:    "",
			HealthPath:     "",
			EnableMetrics:  false,
			EnablePprof:    false,
			HealthResponse: "",
		},
		Shutdown: proc.ShutdownConf{},
	},
	ListenOn:      configx.LocalServerHost,
	StrictControl: false,
	CpuThreshold:  0,
	Health:        true,
}
var EtcdConfig = discov.EtcdConf{
	Hosts: []string{configx.EtcdEndpoints},
	Key:   configx.EtcdKey,
	ID:    0,
	User:  configx.EtcdUsername,
	Pass:  configx.EtcdPassword,
}
